package com.geely.club.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.geely.club.R;
import com.geely.club.constant.CommonConstant;

/**
 * Created by mengyangyang on 2015-09-29.
 */
public class MyMoveFragment extends Fragment {

    private View view;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.fragment_content, container, false);
        TextView content = (TextView) view.findViewById(R.id.content);
        Bundle bd = getArguments();
        if (bd != null) {
            content.setText(bd.getString(CommonConstant.TABPAGE_TEXT));
        }
        return view;
    }

    public static MyMoveFragment newInstance(String title) {
        Bundle bd = new Bundle();
        bd.putString(CommonConstant.TABPAGE_TEXT, title);
        MyMoveFragment fragment = new MyMoveFragment();
        fragment.setArguments(bd);
        return fragment;
    }

}
